home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / tex / pcwritex.zip / PCWRITEX.DOC < prev    next >
Text File  |  1989-01-03  |  25KB  |  511 lines

  1. L---+---T1----+-T--2----T----3--T-+----4T---+---T5----+-T--6----T----R--T-+--r
  2.                               PC-WriTeX
  3.                A conversion routine from PC-Write to TeX
  4.                           v2.3, January 1989
  5. .r:e
  6. INTRODUCTION
  7. PC-Write is a wordprocessing and text editing system from QuickSoft 
  8. (Seattle) for the IBM PC and compatible computers. TeX is a 
  9. typesetting system originally written by Prof Don Knuth of Stanford 
  10. University and available for many kinds of computer including the IBM 
  11. PC and compatibles. 
  12.  
  13. This documentation describes a PC-Write--to--TeX conversion routine 
  14. written as a print driver file pr.doc·. It was devised to allow a 
  15. user's PC-Write wordprocessing files to be printed to disk in a form 
  16. which TeX can accept directly as input, retaining as many of the 
  17. formatting attributes as possible of the original file. The .doc 
  18. filetype was chosen because TeX is used for printing documents, but 
  19. you can rename it and the relevant driver files to anything suitable 
  20. to your needs. The definition files have been placed in the public 
  21. domain. Only the controls described later in this document can be 
  22. expected to work: no responsibility can be taken for what may happen 
  23. if you use other PC-Write controls which are not documented here. In 
  24. particular, you should not use any Dot Guide Lines apart from a ruler 
  25. line, .S (line-spacing) and .R (typeface selection). 
  26.  
  27. A hard-disk PC is assumed, as TeX requires it for all normal usage.
  28. This documentation reflects v2.71 of PC-Write, v3.3 of DOS and v2.94 
  29. of TeX. 
  30.  
  31. .q:e
  32. INSTALLATION
  33. Before copying any of these files, rename your existing PC-Write 
  34. printer driver file pr.def to something meaningful, according to your 
  35. ordinary printer type, for example
  36.  
  37.      rename \pcwrite\pr.def pr.eps  (if you have an Epson printer)
  38.      rename \pcwrite\pr.def pr.tos  (if you have an Toshiba printer)
  39.      rename \pcwrite\pr.def pr.hp2  (if you have a HP series II)
  40.  
  41. This is to make sure your existing files do not get overwritten. 
  42. You can still print all your existing files exactly as before by 
  43. making sure they have the relevant file-type, eg ".eps", ".tos", 
  44. ".hp2", etc. The new pr.def provided with PC-WriTeX contains only 
  45. the command "!pr.*" and will thus look for a driver file with the 
  46. same file-type as the file being printed.
  47.  
  48. Copy all the files from floppy disk into the PC-Write subdirectory 
  49. on your hard disk by typing the command 
  50.  
  51.      copy a:*.* \pcwrite
  52.  
  53. (substituting "b:" if you are using that floppy drive instead of 
  54. "a:"). If you call your PC-Write subdirectory something other than 
  55. "\pcwrite" then substitute that as well. 
  56.  
  57. Copy the TeX definitions file into your texinput subdirectory, 
  58. whatever it is called for the version you have; for PC-TeX, for 
  59. example, you type 
  60.  
  61.      copy \pcwrite\pcwsty.tex \pctex\texinput
  62.  
  63. This ensures that both PC-Write and TeX can find the files when they 
  64. want them. It is assumed that you can use the file-type ".doc" for 
  65. files you are going to convert with this routine. If this is not the 
  66. case, you must choose another file-type and then type the command
  67.  
  68.      rename \pcwrite\*.doc *.xxx
  69.  
  70. where xxx is the file-type you have chosen.
  71. USAGE
  72. Run the PR program, either from DOS by typing PR·filename.DOC or by 
  73. using the F1·F7 keystroke sequence from within the PC-Write edit 
  74. program (in which case, confirm the filename suggested by pressing 
  75. ⌐·[the Return or Enter key]). 
  76.  
  77. When the output selection menu appears, press F9 for "print to a file" 
  78. and give the output file name as the name of your text file but with 
  79. the file-type of .TeX (and press ⌐). 
  80.  
  81. When the main print menu appears, press F10 for "print continuous". 
  82. This will create an output file with the file type of .TeX which will 
  83. contain all the TeX commands necessary to typeset your file. 
  84.  
  85.      ■ It is assumed, of course, that you have TeX available to 
  86.      process this file. Commercially, it costs somewhere between $75 
  87.      and $500 (£50--£300) depending on the implementation you buy. 
  88.      There are several versions for the IBM PC and compatibles 
  89.      including some in the public domain: addresses are at the end of 
  90.      this document. It is also available for most minis and 
  91.      mainframes. 
  92. FEATURES
  93. As far as possible, the basic mnemonic PC-Write controls have been 
  94. followed, but one or two have changed, and several new ones have been 
  95. added (notably the "colour code" Alt keys now perform different 
  96. typesetting instructions). As many as possible (nearly all) of the IBM 
  97. PC math and accent characters have been kept, and the line and 
  98. box-drawing characters can be used for simple tables.░This is a change 
  99. from v2.1, where line and box characters were undefined.▒ The printer 
  100. driver definition file pr.doc and the style-file pcwsty.TeX contain 
  101. the TeX definitions needed to access these facilities. 
  102.  
  103. TeX works by taking a plain ASCII text file with embedded formatting 
  104. commands (produced by this routine direct from your PC-Write file). 
  105. TeX commands consist of plain alphabetic characters or punctuation, 
  106. flagged by a preceding backslash. Thus for example, a change to 
  107. italics (Alt·I in PC-Write) is translated to the TeX command "\it". 
  108. Raw TeX is of course capable of vastly finer control over typefonts, 
  109. spacing and layout than even a sophisticated wordprocessor such as 
  110. PC-Write, so this conversion routine should only be taken as a guide 
  111. or first stage. TeX creates a .DVI file (DeVice-Independent file) 
  112. which contains all the binary stuff needed for a TeX print driver to 
  113. typeset the output on your printer. 
  114.  
  115. Because of the fine-quality nature of typesetting, a few points need 
  116. attention when you are creating or editing a document for typesetting: 
  117.  
  118.   a. TeX assumes that a blank line in your file means "start a new 
  119.      paragraph". This doesn't necessarily mean you get a blank line as 
  120.      such when it is typeset; instead, you get whatever 
  121.      spacing/indentation combination you specify for a new paragraph 
  122.      (PC-WriTeX assumes a flexible amount between ¼ and ½ a 
  123.      line-height, with about 1/3|| indentation --- in fact, a "blank 
  124.      line" in typesetting output is a misleading concept, as 
  125.      typesetting dimensions are almost infinitely variable). What it 
  126.      does mean is that existing texts which use only indentation for a 
  127.      new paragraph, with no blank line, must be edited so that they 
  128.      have blank lines between paragraphs. Indentation can be turned 
  129.      off for a paragraph by starting the paragraph with Alt·X (this is 
  130.      automatic for the first paragraph after a major break, such as 
  131.      a new section, new page or a table). 
  132.  
  133.   b. Disregard all apparent multiple linebreaks and multiple spaces in 
  134.      the output file: TeX makes its own decisions about linebreaking, 
  135.      and swallows all multiple spaces. In any case, TeX justifies a 
  136.      whole paragraph at a time, instead of line by line. The only 
  137.      thing to check for is places where PC-Write might have inserted 
  138.      an extra blank line of its own in the middle of a paragraph 
  139.      because it thinks a pagebreak is due. These will have to be 
  140.      removed manually, otherwise TeX will start a new paragraph at 
  141.      these points (it doesn't happen very often). 
  142.  
  143.   c. Distinguish carefully between the four following symbols, which 
  144.      are often misused:
  145.       
  146.   ·  HYPHEN ("-"), used between two words, like "PC-Write": type a 
  147.      single "-" to get this; 
  148.        
  149.   ·  EN-RULE ("--"), used between two numbers, between a number and a 
  150.      word, or where a hyphen may seem visually incorrect, such as 
  151.      "37--55", "4--part" or "X--rated": type a double "--" to get one; 
  152.      
  153.   ·  EM-RULE ("---"), used between phrases --- sometimes called a 
  154.      dash: type a triple "---" fo